<template>
  <div id="main">
    <el-container>
      <el-header>Header</el-header>
      <el-container>
        <el-aside width="200px">
          <nav-bar></nav-bar>
        </el-aside>
        <el-container>
          <el-main>
            <router-view></router-view>
          </el-main>
          <el-footer>Copyright © 2023 呦呀</el-footer>
        </el-container>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import list from '../components/list.vue'
import navBar from '../components/navigation.vue'
export default {
  data () {
    return {
    };
  },

  components: {
    list, navBar
  },

  methods: {}
}
</script>

<style scoped>
#main {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

  .el-header {
    background-color: #545c64;
    color: #f6f6f6;
    text-align: center;
    line-height: 60px;
  }
  .el-footer {
    background-color: #E9EEF3;
    color: #333;
    text-align: center;
    line-height: 60px;
  }
  .el-aside {
    background-color: #545c64;
    color: #333;
    text-align: center;
    line-height: 200px;
    
  }
  
  .el-main {
    background-color: #E9EEF3;
    color: #333;
    text-align: center;
    /* line-height: 160px; */
  }
  
  .el-container {
    height: 100%;
  }
  
</style>